package com.jiangong.controller;

import com.jiangong.entity.Result;
import com.jiangong.entity.W;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
//@Api(tags = "结构运维")
@RequestMapping("/structureMaintenance")
public class StructureMaintenanceController {
    @Autowired
    private com.jiangong.service.StructureMaintenanceService structureMaintenanceService;
    @RequestMapping("/findAll")
    public com.jiangong.entity.Result findAll() {
        List<W> list =  structureMaintenanceService.findAll();
        System.out.println(list);
        return Result.success(list);
    }
}
